cc_test(
  name = "all_test",
  size = "small",
  srcs = ["all_test.cpp"],
  deps = [    # 依赖我自己的库和googletest库
          # ":auto_decltype",clear
          ":template",
          ":for_range",
          ":bind_func",
          ":lambda_tuple",
          "@com_google_googletest//:gtest_main"
     ],
)

cc_library(
    name  = "auto_decltype",
    srcs  = ['auto_decltype.cpp'],
    hdrs  = ['auto_decltype.h'],
)

cc_library(
    name  = "template",
    srcs  = ['template.cpp'],
    hdrs  = ['template.h'],
)

cc_library(
    name  = "for_range",
    srcs  = ['for_range.cpp'],
    hdrs  = ['for_range.h'],
)

cc_library(
    name  = "bind_func",
    srcs  = ['bind_func.cpp'],
    hdrs  = ['bind_func.h'],
)

cc_library(
    name  = "lambda_tuple",
    srcs  = ['lambda_tuple.cpp'],
    hdrs  = ['lambda_tuple.h'],
)